package com.gosophiaigit.contact.busi.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 *联系人实体类 IgitContact entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
public class Contact implements java.io.Serializable {

	/** 系统内联系人 */
	public static final long SYSTEM_IN_CONTACT = 1237L;
	/** 系统外联系人 */
	public static final long SYSTEM_OUT_CONTACT = 1238L;
	/** 联系人启用 */
	public static final long CONTACT_ENABLE = 1L;
	/** 联系人禁用 */
	public static final long CONTACT_DISABLE = 2L;
	/**
	 * 联系人编号ID
	 */
	private Long contactId;
	/**
	 * 性别 1031男 1032女
	 */
	private Long contactSex;
	/**
	 * 联系人类型 系统内 系统外 1238
	 */
	private Long contactType;
	/**
	 * 删除标志   1：已删除
	 */
	private Long contactDelFlag;
	/**
	 * 政治面貌 字典表1212
	 */
	private Long contactPoliticalStatus;
	/**
	 * 启用标志:启用：1，禁用：2
	 */
	private Long contactUseFlag;

	/**
	 * 职级 字典表 1211
	 */
	private Long contactJobClass;
	/**
	 * 民族 字典表 1213
	 */
	private Long contactNational;
	/**
	 * 用户编号
	 */
	private Long userInfoId;
	/**
	 * 工作单位
	 */
	private String contactUnit;
	/**
	 * 工作单位职位
	 */
	private String unitPost;
	/**
	 * 移动电话
	 */
	private String contactMobile;
	/**
	 * 单位电话
	 */
	private String officePhone;
	/**
	 * 单位传真
	 */
	private String contactFax;
	/**
	 * 家庭电话
	 */
	private String homePhone;
	/**
	 * 单位地址
	 */
	private String officeAddress;
	/**
	 * 单位邮编
	 */
	private Long officeCode;
	/**
	 * 家庭地址
	 */
	private String homeAddress;
	/**
	 * 家庭邮编
	 */
	private Long homeCode;
	/**
	 * 其他地址
	 */
	private String otherAddress;
	/**
	 * 其他邮编
	 */
	private Long otherCode;
	/**
	 * 出生日期
	 */
	private Date birthDate;
	/**
	 * 备注
	 */
	private String content;
	/**
	 * 姓名全拼
	 */
	private String spellName;
	/**
	 * 扩展属性,联系人中文姓名
	 */
	private String contactName;

	/** 邮件 */
	private String email;

	/** 扩展属性，用于页面显示,联系人类型 */
	private String contactTypeExpand;
	/**
	 * 社会兼职信息实体.
	 */
	private Set<ContactPartTime> contactPartTimes = new HashSet<ContactPartTime>();

	private Set<ContactGroupRelation> contactGroupRelations = new HashSet<ContactGroupRelation>();

	public Contact() {
	}

	public Contact(Long contactId, Long contactSex, Long contactType,
			Long contactDelFlag, Long contactPoliticalStatus,
			Long contactUseFlag, Long contactJobClass, Long contactNational,
			Long userInfoId, String contactUnit, String unitPost,
			String contactMobile, String officePhone, String contactFax,
			String homePhone, String officeAddress, Long officeCode,
			String homeAddress, Long homeCode, String otherAddress,
			Long otherCode, Date birthDate, String content, String spellName,
			String contactName, String email, String contactTypeExpand,
			Set<ContactPartTime> contactPartTimes,
			Set<ContactGroupRelation> contactGroupRelations) {
		super();
		this.contactId = contactId;
		this.contactSex = contactSex;
		this.contactType = contactType;
		this.contactDelFlag = contactDelFlag;
		this.contactPoliticalStatus = contactPoliticalStatus;
		this.contactUseFlag = contactUseFlag;
		this.contactJobClass = contactJobClass;
		this.contactNational = contactNational;
		this.userInfoId = userInfoId;
		this.contactUnit = contactUnit;
		this.unitPost = unitPost;
		this.contactMobile = contactMobile;
		this.officePhone = officePhone;
		this.contactFax = contactFax;
		this.homePhone = homePhone;
		this.officeAddress = officeAddress;
		this.officeCode = officeCode;
		this.homeAddress = homeAddress;
		this.homeCode = homeCode;
		this.otherAddress = otherAddress;
		this.otherCode = otherCode;
		this.birthDate = birthDate;
		this.content = content;
		this.spellName = spellName;
		this.contactName = contactName;
		this.email = email;
		this.contactTypeExpand = contactTypeExpand;
		this.contactPartTimes = contactPartTimes;
		this.contactGroupRelations = contactGroupRelations;
	}

	public String getContactTypeExpand() {
		return contactTypeExpand;
	}

	public void setContactTypeExpand(String contactTypeExpand) {
		this.contactTypeExpand = contactTypeExpand;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getSpellName() {
		return spellName;
	}

	public void setSpellName(String spellName) {
		this.spellName = spellName;
	}

	public Long getContactId() {
		return contactId;
	}

	public void setContactId(Long contactId) {
		this.contactId = contactId;
	}

	public Long getContactSex() {
		return contactSex;
	}

	public void setContactSex(Long contactSex) {
		this.contactSex = contactSex;
	}

	public Long getContactType() {
		return contactType;
	}

	public void setContactType(Long contactType) {
		this.contactType = contactType;
	}

	public Long getContactDelFlag() {
		return contactDelFlag;
	}

	public void setContactDelFlag(Long contactDelFlag) {
		this.contactDelFlag = contactDelFlag;
	}

	public Long getContactUseFlag() {
		return contactUseFlag;
	}

	public void setContactUseFlag(Long contactUseFlag) {
		this.contactUseFlag = contactUseFlag;
	}

	public Long getUserInfoId() {
		return userInfoId;
	}

	public void setUserInfoId(Long userInfoId) {
		this.userInfoId = userInfoId;
	}

	public String getContactUnit() {
		return contactUnit;
	}

	public void setContactUnit(String contactUnit) {
		this.contactUnit = contactUnit;
	}

	public String getUnitPost() {
		return unitPost;
	}

	public void setUnitPost(String unitPost) {
		this.unitPost = unitPost;
	}

	public String getContactMobile() {
		return contactMobile;
	}

	public void setContactMobile(String contactMobile) {
		this.contactMobile = contactMobile;
	}

	public String getOfficePhone() {
		return officePhone;
	}

	public void setOfficePhone(String officePhone) {
		this.officePhone = officePhone;
	}

	public String getContactFax() {
		return contactFax;
	}

	public void setContactFax(String contactFax) {
		this.contactFax = contactFax;
	}

	public String getHomePhone() {
		return homePhone;
	}

	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}

	public String getOfficeAddress() {
		return officeAddress;
	}

	public void setOfficeAddress(String officeAddress) {
		this.officeAddress = officeAddress;
	}

	public Long getOfficeCode() {
		return officeCode;
	}

	public void setOfficeCode(Long officeCode) {
		this.officeCode = officeCode;
	}

	public String getHomeAddress() {
		return homeAddress;
	}

	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}

	public Long getHomeCode() {
		return homeCode;
	}

	public void setHomeCode(Long homeCode) {
		this.homeCode = homeCode;
	}

	public String getOtherAddress() {
		return otherAddress;
	}

	public void setOtherAddress(String otherAddress) {
		this.otherAddress = otherAddress;
	}

	public Long getOtherCode() {
		return otherCode;
	}

	public void setOtherCode(Long otherCode) {
		this.otherCode = otherCode;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Set<ContactPartTime> getContactPartTimes() {
		return contactPartTimes;
	}

	public void setContactPartTimes(Set<ContactPartTime> contactPartTimes) {
		this.contactPartTimes = contactPartTimes;
	}

	public Set<ContactGroupRelation> getContactGroupRelations() {
		return contactGroupRelations;
	}

	public void setContactGroupRelations(
			Set<ContactGroupRelation> contactGroupRelations) {
		this.contactGroupRelations = contactGroupRelations;
	}

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public Long getContactPoliticalStatus() {
		return contactPoliticalStatus;
	}

	public void setContactPoliticalStatus(Long contactPoliticalStatus) {
		this.contactPoliticalStatus = contactPoliticalStatus;
	}

	public Long getContactJobClass() {
		return contactJobClass;
	}

	public void setContactJobClass(Long contactJobClass) {
		this.contactJobClass = contactJobClass;
	}

	public Long getContactNational() {
		return contactNational;
	}

	public void setContactNational(Long contactNational) {
		this.contactNational = contactNational;
	}
}